package cn.bluemobi.dylan.step.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import cn.bluemobi.dylan.step.R;
import cn.bluemobi.dylan.step.activity.skeleton.HumanSkeletonActivity;

public class MyJiLuActivity extends AppCompatActivity implements View.OnClickListener {

    private ImageView jilu_back;
    private Button paobujilu;
    private Button tiaoshengjilu;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_ji_lu);

        jilu_back = (ImageView) findViewById(R.id.jilu_back);
        paobujilu = (Button) findViewById(R.id.paoBujilu);
        tiaoshengjilu = (Button) findViewById(R.id.tiaoShengjilu);

        jilu_back.setOnClickListener(this);
        paobujilu.setOnClickListener(this);
        tiaoshengjilu.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.tiaoShengjilu:
                startActivity(new Intent(this, TiaoShengHistory.class));
                break;
            case R.id.paoBujilu:
                startActivity(new Intent(this, RunningHistory.class));
                break;
            case R.id.jilu_back:
//                startActivity(new Intent(this, MainActivity.class));
                finish();
                break;
        }
    }
}